<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html style="margin:0; padding:0;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="<s:url value='/resources/css/car.css'/>"/>
<link rel="stylesheet" type="text/css" href="<s:url value='/resources/css/shop/top.css'/>"/>
<script src="<s:url value='/resources/js/jquery/jquery-1.5.2.min.js'/>" type="text/javascript"></script>
<script src="<s:url value='/resources/js/common/time.js'/>" type="text/javascript"></script>
<script src="<s:url value='/resources/js/car/main.js'/>" type="text/javascript"></script>
<script type="text/javascript">
var contextpath="<%=request.getContextPath()%>";
var placeId = '<s:property value="#request.placeId"/>';
$(function(){
	$('.iterm').live('click',function(){
		$(this).addClass('checked').siblings('.checked').removeClass('checked');
		var enumber = $(this).find(':input[name="enumber"]').val();
		var iframe = createFrame('iframe',contextpath+'/car/detail.do?placeId='+placeId+'&car.enumber='+enumber, 800, 550);
		$('#showContent').html(iframe);
	});
});
</script>
<title>旅游车主界面</title>
</head>
<body style="overflow: hidden; padding:0; margin: 0;" scroll="no">
<div class="main">
	<div id="top">
		<div class="home"></div>
		<div class="sysname" style="font-family:'微软雅黑';">现代旅游车辆监控系统</div>
		<div class="user"></div>
		<div class="userText">操作员:000001</div>
		<div class="time">
			<span id="nowTime"><s:date name="#request.time" format="yyyy/MM/dd EEE HH:mm:ss"/></span>
			<input type="button" value="关闭程序" onclick="javascript:window.external.CloseSystem();">
		</div>
		<div class="clr"></div>
	</div>
	<div class="main-content">
		<div class="left driver">
			<div class="catalog">今日到达车辆：<s:property value="#request.cars.size"/></div>
			<s:iterator var="car" value="#request.cars">
			<s:if test="#car.leaveTime == null">
				<div class="iterm">
					<div class="r-iterm-name"><s:property value="#car.driver"/></div>
					<div class="r-iterm-num"><s:property value="#car.carNumber"/></div>
					<input type="hidden" name="enumber" value="<s:property value="#car.enumber"/>"/>
				</div>
			</s:if>
			<s:else>
				<div class="iterm leave">
					<div class="r-iterm-name"><s:property value="#car.driver"/></div>
					<div class="r-iterm-num"><s:property value="#car.carNumber"/></div>
					<input type="hidden" name="enumber" value="<s:property value="#car.enumber"/>"/>
				</div>
			</s:else>
			</s:iterator>
		</div>
		<div class="right" id="showContent">
			<div class="welcome"><s:property value="#request.place.name"/>欢迎您!</div>
<%-- 			<div class="showNumber">今日到达车辆：<a class="number" id="arriveCarNum" href="javascript:findArriveCar();"><s:property value="#request.count"/></a>辆</div> --%>
			<div class="showclient">客户机：000001 &nbsp;&nbsp; 使用单位：<s:property value="#request.place.name"/>场所</div>
		</div>
		<div class="clear"></div>
<!-- 		<div class="background"></div> -->
		
	</div>
</div>
</body>
</html>